class EnterprisesController < ApplicationController

  before_filter :must_be_admin, :except => :show

  def show
    @enterprise = Enterprise.current
  end

  def edit
    @enterprise = Enterprise.current
  end  

  def update
    @enterprise = Enterprise.current
    if @enterprise.update_attributes(params[:enterprise])
      redirect_to :action => :show
    else
      render :edit 
    end
  end
end
